#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
	int count = 0;

	for (int i = 1; i <= 100; i++)
	{
		int j = i;
		if (i % 10 == 9)
			count++;
		if (j / 10 == 9)
			count++;
	}
	printf("%d\n", count);

	return 0;
}